package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Point;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PointMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Point entity);

    Point selectByPrimaryKey(Long id);

    List<Point> selectAll();

    int updateByPrimaryKey(Point entity);

    void dailyUpdate(Point point);

    Integer selectIntegral(Long id);

    void seriesUpdate(Point point);

    void updateIntegralByUserId(@Param("userId") Long userId, @Param("integral") Integer integral);
}